<template>
  <div class="wrap w-info detail">
    <header>
        <img onclick="javascript :history.back(-1);" src="@/assets/img/l_b.png" alt="" />
        消息
    </header>
    <ul class="list" >
        <li v-for="(item,index) in notice">
            <h4>{{item.content}}</h4>
            <p>{{item.add_time}}</p>
        </li>
        
        
    </ul>

    <Bartab />

</div>

</template>
<script>

import Bartab from '@/components/Bartab.vue'

export default {
  name: 'home',
  data(){
    return{
        notice: '',

     }
  },
  async created(){
    let user_token = this.getUserToken()
    let re = await this.$axios.post('user/getNoticeList',{
        user_token:user_token
    })
    this.notice = re.data
    
  },
  mounted(){
            
  },
  components: {
    'Bartab':Bartab
  }
}
</script>